package com.hizzyzzh.source.java.base.java.util;

import com.hizzyzzh.source.java.base.java.lang.Object;

public final class Objects {
    private Objects(){};

    public static boolean equals(Object a, Object b){
        return a == b || (a != null && a.equals(b));
    }

    public static <T> T requireNonNull(T obj){
        if(obj == null){
            throw new NullPointerException();
        }
        return obj;
    }
}
